#ifndef MANAGER_CTRL_IMPL_H
#define MANAGER_CTRL_IMPL_H
#include "manager_ctrl.h"
#include "manager_mode_impl.h"
class ManagerCtrlImpl : public ManagerCtrl
{
	vector<Manager> mgrArr;
	ManagerMode* mgrMode;
	public:
	ManagerCtrlImpl()
	{
		mgrMode = new ManagerModeImpl;
		mgrMode->load(mgrArr);
	}
	ManagerCtrlImpl(ManagerMode* mgr_mode)
	{
		mgrMode = mgr_mode;
		mgrMode->load(mgrArr);
	}
	~ManagerCtrlImpl()
	{
		cout << "执行了ManagerCtrlImpl的析构函数..." << endl;
		mgrMode->save(mgrArr);
	}
	bool addMgr(Manager& mgr);
	bool delMgr(int ipx);
	vector<Manager>& listMgr(void);
};
#endif//MANAGER_CTRL_IMPL_H
